package com.easy.slurm.exception;

public enum ResultCode implements IResultCode {

    SUCCESS(200, "操作成功"),
    FAILURE(400, "系统异常"),
    LOGINFAILURE(401,"当前用户登录失效"),
    FILENAMENOTEXIST(601,"作业名称不能为空"),
    JOBIDNOTEXIST(602,"作业ID不能为空");

    final Integer code;
    final String message;

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }

    private ResultCode(final Integer code, final String message) {
        this.code = code;
        this.message = message;
    }
}
